public class Car {
    private String color;
    private String brand;
    private double price;

    public Car() {
    }

    public Car(String color, String brand, double price) {
        this.color = color;
        this.brand = brand;
        this.price = price;
    }

    /**
     * 获取
     *
     * @return color
     */
    public String getColor() {
        return color;
    }

    /**
     * 设置
     *
     * @param color
     */
    public void setColor(String color) {
        this.color = color;
    }

    /**
     * 获取
     *
     * @return brand
     */
    public String getBrand() {
        return brand;
    }

    /**
     * 设置
     *
     * @param brand
     */
    public void setBrand(String brand) {
        this.brand = brand;
    }

    /**
     * 获取
     *
     * @return price
     */
    public double getPrice() {
        return price;
    }

    /**
     * 设置
     *
     * @param price
     */
    public void setPrice(int price) {
        this.price = price;
    }

    public String toString() {
        return "Car{color = " + color + ", brand = " + brand + ", price = " + price + "}";
    }

    public void action1() {
        System.out.println("前进");
    }

    public void action2() {
        System.out.println("后退");
    }

    public void action3() {
        System.out.println("转弯");
    }

    public void displayInfo() {
        System.out.println("汽车信息：");
        System.out.println("品牌：" + brand);
        System.out.println("颜色：" + color);
        System.out.println("价格：" + price + "万元");
    }
}
